﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace suanpan.API.Components.Exceptions
{
    public class BadRequestException : RESTException
    {
        public BadRequestException(Exception ex)
            : base(ex, HttpStatusCode.BadRequest, string.Format("Bad request. {0}",ex.Message))
        {
            
        }
        public BadRequestException(string statusDescription) 
            : base(new Exception(statusDescription), HttpStatusCode.BadRequest, statusDescription)
        {

        }
    }
}
